package week05.day02;

import java.util.Arrays;

/**
 * 数组工具类：Arrays
 * Arrays.toStrings(数组名)---获取数组中的具体值，且用[]包裹着
 * Arrays.sort()
 */
public class 数组工具类 {
    public static void main(String[] args) {
        /**
        int[] arr = {1231,2132,1312,312,321,312,321,312,321,313};
        System.out.println(arr);//数组地址值
        System.out.println("排序前"+Arrays.toString(arr));
        Arrays.sort(arr);
        System.out.println("排序后"+Arrays.toString(arr));
         */
        int[] num = {20,70,10,90,80,40,30,50,60};
        Arrays.sort(num);
        System.out.println(Arrays.toString(num));
    }
}

